package com.aaa.service.czy;

import com.aaa.dao.czy.ProductDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * fileName(类名):ProductServiceImpl
 * description(作用):
 * author(作者):czy
 * createTime(创建时间):2020/1/13 10:30
 * version(版本):1.0.0
 */
@Service
public class ProductServiceImpl implements ProductService {

    /**
     * 依赖注入
     */
    @Autowired
    ProductDao productDao;

    /**
     *查询商品列表
     * @param shopid
     * @return
     */
    @Override
    public List<Map> productList(Integer shopid) {
        return productDao.productList(shopid);
    }

    /**
     * 查询商品类别
     * @param shopid
     * @param categoryid
     * @return
     */
    @Override
    public List<Map> productCategory(Integer shopid, Integer categoryid) {
        return productDao.productCategory(shopid,categoryid);
    }
}
